# 其他数据类型转化为集合类型
# 作用：可以去重
# TODO str -> set
str1 = 'hello world'
s1 = set(str1)
print(s1)

# TODO list -> set
list1 = ['a', 'b', 'a']
s2 = set(list1)
print(s2)

# TODO dict -> set
# keys
dict1 = {'name':'hello', 'age':18, 'stu_no':18}
s3 = set(dict1)
print(s3)

s4 = set(dict1.values())
print(s4)


